﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="EditDataEmp.aspx.cs" Inherits="EmployeeCheckIn.EditDataEmp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">

    <style type="text/css">

        .style1
        {
            width: 100%;
        }
        .style7
        {
            width: 355px;
        }
        .style10
        {
            width: 718px;
        }
        .style11
        {
            width: 90px;
        }
        .style14
        {
            width: 123px;
            height: 26px;
        }
        .style15
        {
            width: 123px;
        }
        .style16
        {
            width: 249px;
            height: 21px;
        }
        .style17
        {
            width: 123px;
            height: 21px;
        }
        .style18
        {
            height: 21px;
        }
        .style19
        {
            width: 249px;
        }
        .style20
        {
            width: 58%;
        }
        .style23
        {
            width: 100%;
            margin-left: 1px;
        }
        .style24
        {
            width: 412px;
        }
        .style25
        {
            width: 135px;
        }
        </style>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">

    <span class="style11" 
                    
        style="font-size: large; color: #000000; background-color: #FFFFFF;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                </span>&nbsp;<table class="style1">
    
        <tr>
            <td>
                <span class="style11" 
                    
        style="font-size: large; color: #000000; background-color: #FFFFFF;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; แก้ไขข้อมูลพนักงาน</span></td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    <table class="style1">
        <tr>
            <td class="style10">
                <table class="style20">
                    <tr>
                        <td>
                            &nbsp;</td>
                    </tr>
                </table>
            </td>
            <td class="style10">
                <table class="style20">
                    <tr>
                        <td>
                            &nbsp;</td>
                    </tr>
                </table>
            </td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    <table class="style1">
        <tr>
            <td class="style7">
                &nbsp;</td>
            <td>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Image ID="imEm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nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
        </p>
    <table class="style1">
        <tr>
            <td class="style19">
                &nbsp;</td>
            <td class="style15" align="right" style="font-size: small; color: #000000">
                รหัสพนักงาน</td>
            <td>
                <asp:TextBox ID="txtEMP_CODE" runat="server" Width="170px" Enabled="False"></asp:TextBox>
                <asp:HiddenField ID="hdf1" runat="server" />
            </td>
        </tr>
        <tr>
            <td class="style19">
                &nbsp;</td>
            <td class="style15" align="right" style="font-size: small; color: #000000">
                คำนำหน้าชื่อ</td>
            <td>
                <asp:RadioButtonList ID="rbltitle" runat="server" RepeatDirection="Horizontal" >
                    <asp:ListItem Selected="True" Value="1">นาย</asp:ListItem>
                    <asp:ListItem Value="2">นาง</asp:ListItem>
                    <asp:ListItem Value="3">นางสาว</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr>
            <td class="style16">
            </td>
            <td class="style17" align="right" style="font-size: small; color: #000000">
                <span class="RedText">*</span>ชื่อ:</td>
            <td class="style18">
                <asp:TextBox ID="txtEMP_FIRSTNAME" runat="server" Width="170px"></asp:TextBox>
                <asp:Label ID="lbNotFName" runat="server" ForeColor="Red" Visible="False"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style19">
                &nbsp;</td>
            <td class="style15" align="right" style="font-size: small; color: #000000">
                <span class="RedText">*</span>นามสกุล:</td>
            <td>
                <asp:TextBox ID="txtEMP_LASTNAME" runat="server" Width="170px"></asp:TextBox>
                <asp:Label ID="lbNotLName" runat="server" ForeColor="Red" Visible="False"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style19">
                &nbsp;</td>
            <td class="style15" align="right" style="font-size: small; color: #000000">
                ตำแหน่ง:</td>
            <td>
                <asp:DropDownList ID="ddlposition2" runat="server" DataSourceID="lkqPosition2" 
                    DataTextField="POSITION_NAME" DataValueField="POSITION_ID" 
                    Width="170px">
                </asp:DropDownList>
                <asp:LinqDataSource ID="lkqPosition2" runat="server" 
                    ContextTypeName="EmployeeCheckIn.PositionDataContext"
                    Select="new (POSITION_ID, POSITION_NAME)" TableName="TBL_POSITIONs">
                </asp:LinqDataSource>
            </td>
        </tr>
        <tr>
            <td class="style19">
                &nbsp;</td>
            <td class="style14" align="right" style="font-size: small; color: #000000">
                วันเริ่มทำงาน:</td>
            <td>
                <asp:TextBox ID="txtEMP_START_DATE" runat="server" class="dateInput" 
                    Width="170px"></asp:TextBox>
                <asp:Label ID="lbNotSDate" runat="server" ForeColor="Red" Visible="False"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style19">
                &nbsp;</td>
            <td class="style15" align="right" style="font-size: small; color: #000000">
                วันเกิด:</td>
            <td>
                <asp:TextBox ID="txtEMP_BIRTH_DATE" runat="server" class="dateInput" 
                    Width="170px"></asp:TextBox>
                <asp:Label ID="lbNotBDate" runat="server" ForeColor="Red" Visible="False"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style19">
                &nbsp;</td>
            <td class="style15" align="right" style="font-size: small; color: #000000">
                รหัสบัตรประชาชน:</td>
            <td>
                <asp:TextBox ID="txtEMP_ID_CARD" runat="server" Width="170px"></asp:TextBox>
                <asp:Label ID="lbNotIDCard" runat="server" ForeColor="Red" Visible="False"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style19">
                &nbsp;</td>
            <td class="style15" align="right" style="font-size: small; color: #000000">
                ที่อยู่:</td>
            <td>
                <asp:TextBox ID="txtEMP_ADDRESS" runat="server" Height="75px" 
                    TextMode="MultiLine" Width="227px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style19">
                &nbsp;</td>
            <td class="style15" align="right" style="font-size: small; color: #000000">
                จังหวัด:</td>
            <td>
                <asp:DropDownList ID="ddlProvince" runat="server" DataSourceID="lnkqProvince" 
                    DataTextField="PROVINCE_NAME" DataValueField="PROVINCE_ID" 
                    Width="170px">
                </asp:DropDownList>
                <asp:LinqDataSource ID="lnkqProvince" runat="server" 
                    ContextTypeName="EmployeeCheckIn.ProvinceDataContext"
                    Select="new (PROVINCE_ID, PROVINCE_NAME)" TableName="TBL_PROVINCEs">
                </asp:LinqDataSource>
            </td>
        </tr>
        <tr>
            <td class="style19">
                &nbsp;</td>
            <td class="style15" align="right" style="font-size: small; color: #000000">
                รหัสไปรษณีย์:</td>
            <td>
                <asp:TextBox ID="txtEMP_POST_CODE" runat="server" Width="170px"></asp:TextBox>
                <asp:Label ID="lbNotPost" runat="server" ForeColor="Red" Visible="False"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style19">
                &nbsp;</td>
            <td class="style14" align="right" style="font-size: small; color: #000000">
                เบอร์โทร:</td>
            <td>
                <asp:TextBox ID="txtEMP_PHONE" runat="server" Width="170px"></asp:TextBox>
                <asp:Label ID="lbNotPhone" runat="server" ForeColor="Red" Visible="False"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style19">
                &nbsp;</td>
            <td class="style14" align="right" style="font-size: small; color: #000000">
                รูปภาพ</td>
            <td>
        <asp:FileUpload ID="upfPicture" runat="server" />
        <asp:Label ID="lbUpsucsess" runat="server" ForeColor="Red"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style19">
                &nbsp;</td>
            <td class="style15" align="right" style="font-size: small; color: #000000">
                สถานะการทำงาน:</td>
            <td>
                <asp:DropDownList ID="ddlStatus2" runat="server" DataSourceID="linqStatus1" 
                    DataTextField="EMP_STATUS_NAME" DataValueField="EMP_STATUS_ID" 
                    Width="170px">
                </asp:DropDownList>
                <asp:LinqDataSource ID="linqStatus1" runat="server" 
                    ContextTypeName="EmployeeCheckIn.linqStatus1DataContext"
                    Select="new (EMP_STATUS_ID, EMP_STATUS_NAME)" TableName="TBL_STATUS">
                </asp:LinqDataSource>
            </td>
        </tr>
    </table>
    <table class="style23">
        <tr><td></td>
            
            <td class="style25">
                
                <asp:Button ID="Button2" runat="server" onclick="Button2_Click" Text="บันทึก" 
                    OnClientClick="if(!confirm('ยืนยันการบันทึกข้อมูล')) return false;" Width="50px" />
            </td>
            <td>
                
                <asp:Button ID="Button3" runat="server" onclick="Button3_Click" Text="รีเซ็ต" />
            </td>
        </tr>
        <tr>
            <td class="style24">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="Back" runat="server" onclick="Back_Click" 
                    Text="กลับสู่หน้าหลัก" />
            </td>
        </tr>
    </table>
</asp:Content>
